Skip to content

feat: 支持动态创建子agent能力#109

Merged
helloopenworld merged 1 commit into
trpc-group:mainfrom
bochencwx:feature/support_dynamic_agent
Jul 3, 2026
Merged

feat: 支持动态创建子agent能力#109
helloopenworld merged 1 commit into
trpc-group:mainfrom
bochencwx:feature/support_dynamic_agent

Conversation

@bochencwx

Copy link
Copy Markdown
Contributor

No description provided.

@bochencwx bochencwx changed the title feat: 支持动态创建子agent feat: 支持动态创建子agent能力 Jul 1, 2026
@codecov

codecov Bot commented Jul 1, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (main@530a5b3). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff             @@
##             main        #109   +/-   ##
==========================================
  Coverage        ?   87.51506%           
==========================================
  Files           ?         467           
  Lines           ?       44005           
  Branches        ?           0           
==========================================
  Hits            ?       38511           
  Misses          ?        5494           
  Partials        ?           0           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bochencwx bochencwx force-pushed the feature/support_dynamic_agent branch 5 times, most recently from 93ef195 to bd59325 Compare July 2, 2026 07:39
@bochencwx bochencwx closed this Jul 2, 2026
@bochencwx bochencwx reopened this Jul 2, 2026
@bochencwx bochencwx force-pushed the feature/support_dynamic_agent branch 2 times, most recently from 6bf9893 to 8b32a8d Compare July 3, 2026 07:23
@bochencwx bochencwx force-pushed the feature/support_dynamic_agent branch from 8b32a8d to 10d0f75 Compare July 3, 2026 07:36
- **上下文污染**:探索性搜索、工具输出、中间结果填满上下文窗口,把真正有用的信息挤走。
- **工具泛滥**:父 agent 一直携带所有工具,而大多数子任务只需其中一小部分。
- **角色无法隔离**:父 agent 只有一个 system prompt,无法为不同子任务切换不同人设或约束。
- **缺乏旁观视角**:自己写的代码很难自己发现问题。独立的上下文如同"第二双眼睛",可以客观审计、质疑方案、验证结论,不受父 agent 推理路径的干扰。

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

可以讲一下动态SubAgent的方式,与先前框架subagent的区别

that the parent agent can act on directly."""


class DynamicAgentTool(BaseTool):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里的名字也改成SubAgentTool吧

@helloopenworld helloopenworld merged commit 099b571 into trpc-group:main Jul 3, 2026
6 checks passed
ZUNr1 pushed a commit to ZUNr1/trpc-agent-python that referenced this pull request Jul 4, 2026
ZUNr1 pushed a commit to ZUNr1/trpc-agent-python that referenced this pull request Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants